package com.tengju.data.infrastructure.persistence.mybatis.mapper.dealerclickhouse.crm;

import com.tengju.data.domain.model.cqrs.CrmActivityAnalysisQO;
import com.tengju.data.domain.model.cqrs.CrmActivityCompleteValueQO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author chenhang
 * @Date 2021/12/29
 */
public interface ActivityAnalysisMapper {

    List<Map<String, Object>> secTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> directorTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> dealerTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> serviceProviderTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> activityTransformFunnel(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> transformFunnel(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> departmentRankTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> secRankTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> directorRankTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> activityCompleteTotal(@Param("qo") CrmActivityCompleteValueQO qo);

    List<Map<String, Object>> addcartGoodsRankTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> moneyoutRankTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> dealerRankTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> overview(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> overviewTable(@Param("qo") CrmActivityAnalysisQO qo);

    List<Map<String, Object>> getSubjectNameList(@Param("activityId") long activityId, @Param("activityType") int activityType);

    int countSecTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

    int countServiceProviderTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

    int countDealerTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

    int countDirectorTargetReachTable(@Param("qo") CrmActivityAnalysisQO qo);

}
